<?php
$arr = array (
  'cat_goods' => 
  array (
    0 => 
    array (
      'cat_id' => '1',
      'cat_img' => 'image/AdvertisingMap1.jpg',
      'goods' => 
      array (
        0 => 
        array (
          'goods_id' => '36',
          'goods_thumb' => 'image/FruitsVarieties1.jpg',
          'shop_price' => '1.00',
          'goods_name' => '测试绑定供应商id11',
          'is_hot' => '1',
          'is_new' => '0',
          'is_best' => '0',
          'unit' => '',
        ),
        1 => 
        array (
          'goods_id' => '35',
          'goods_thumb' => 'image/FruitsVarieties1.jpg',
          'shop_price' => '100.00',
          'goods_name' => '测试绑定供应商id',
          'is_hot' => '0',
          'is_new' => '1',
          'is_best' => '0',
          'unit' => '',
        ),
        2 => 
        array (
          'goods_id' => '34',
          'goods_thumb' => 'image/FruitsVarieties1.jpg',
          'shop_price' => '2.00',
          'goods_name' => 'ceshi供应商商品',
          'is_hot' => '0',
          'is_new' => '1',
          'is_best' => '0',
          'unit' => '',
        ),
      ),
    ),
    1 =>
    array (
      'cat_id' => '12',
      'cat_img' => 'image/AdvertisingMap2.jpg',
      'goods' => 
      array (
        0 => 
        array (
          'goods_id' => '26',
          'goods_thumb' => 'image/FruitsVarieties1.jpg',
          'shop_price' => '19.00',
          'goods_name' => '小灵通/固话20元充值卡',
          'is_hot' => '1',
          'is_new' => '0',
          'is_best' => '0',
          'unit' => '',
        ),
        1 => 
        array (
          'goods_id' => '25',
          'goods_thumb' => 'image/FruitsVarieties1.jpg',
          'shop_price' => '48.00',
          'goods_name' => '小灵通/固话50元充值卡',
          'is_hot' => '1',
          'is_new' => '0',
          'is_best' => '1',
          'unit' => '',
        ),
      ),
    ),
  ),
  'hot_goods' => 
  array (
    0 => 
    array (
      'goods_id' => 1,
      'goods_title' => '测试商品',
      'shop_price' => '9.90',
      'unit' => '个',
      'goods_desc' => '好吃的测试商品1...',
        'is_hot' => '1',
        'is_new' => '0',
        'is_best' => '0',
      'thumb' => 'image/FruitsVarieties1.jpg',
    ),
    1 => 
    array (
      'goods_id' => 2,
      'goods_title' => '测试商品2',
      'shop_price' => '29.90',
      'unit' => '个',
      'goods_desc' => '好吃的测试商品2...',
        'is_hot' => '0',
        'is_new' => '1',
        'is_best' => '0',
      'thumb' => 'image/FruitsVarieties1.jpg',
    ),
    2 => 
    array (
      'goods_id' => 3,
      'goods_title' => '测试商品3',
      'shop_price' => '19.90',
      'unit' => '个',
      'goods_desc' => '好吃的测试商品3...',
        'is_hot' => '1',
        'is_new' => '0',
        'is_best' => '0',
      'thumb' => 'image/FruitsVarieties1.jpg',
    ),
  ),
  'recommend_goods' => 
  array (
    0 => 
    array (
      'cat_name' => '高端鲜货',
      'goods' => 
      array (
        0 => 
        array (
          'goods_id' => 1,
          'goods_title' => '测试商品',
          'shop_price' => '9.90',
          'unit' => '个',
          'goods_desc' => '好吃的测试商品1...',
            'is_hot' => '0',
            'is_new' => '0',
            'is_best' => '0',
          'thumb' => 'image/FruitsVarieties1.jpg',
        ),
        1 => 
        array (
          'goods_id' => 2,
          'goods_title' => '测试商品2',
          'shop_price' => '29.90',
          'unit' => '个',
          'goods_desc' => '好吃的测试商品2...',
            'is_hot' => '1',
            'is_new' => '0',
            'is_best' => '0',
          'thumb' => 'image/FruitsVarieties1.jpg',
        ),
        2 => 
        array (
          'goods_id' => 3,
          'goods_title' => '测试商品3',
          'shop_price' => '19.90',
          'unit' => '个',
          'goods_desc' => '好吃的测试商品3...',
            'is_hot' => '0',
            'is_new' => '1',
            'is_best' => '0',
          'thumb' => 'image/FruitsVarieties1.jpg',
        ),
      ),
    ),
    1 => 
    array (
      'cat_name' => '进口水果',
      'goods' => 
      array (
        0 => 
        array (
          'goods_id' => 1,
          'goods_title' => '测试商品',
          'shop_price' => '9.90',
          'unit' => '个',
          'goods_desc' => '好吃的测试商品1...',
            'is_hot' => '0',
            'is_new' => '1',
            'is_best' => '0',
          'thumb' => 'image/FruitsVarieties1.jpg',
        ),
        1 => 
        array (
          'goods_id' => 2,
          'goods_title' => '测试商品2',
          'shop_price' => '29.90',
          'unit' => '个',
          'goods_desc' => '好吃的测试商品2...',
            'is_hot' => '0',
            'is_new' => '0',
            'is_best' => '0',
          'thumb' => 'image/FruitsVarieties1.jpg',
        ),
        2 => 
        array (
          'goods_id' => 3,
          'goods_title' => '测试商品3',
          'shop_price' => '19.90',
          'unit' => '个',
          'goods_desc' => '好吃的测试商品3...',
            'is_hot' => '1',
            'is_new' => '0',
            'is_best' => '0',
          'thumb' => 'image/FruitsVarieties1.jpg',
        ),
      ),
    ),
  ),
);
echo json_encode($arr, true);